using System.Reflection;

namespace SBPweb.Common.Versioning
{
	/// <summary>
	/// Class of Version
	/// </summary>
	public class Version
	{
		private static string mName;
		private static System.Version mVersion;

		static Version()
		{
			Assembly asm = Assembly.GetExecutingAssembly();
			AssemblyName name = new AssemblyName(asm.FullName);
			mName = name.Name;
			mVersion = name.Version;
		}

		/// <summary>
		/// Constructor of Version
		/// </summary>
		protected Version()
		{

		}

		/// <summary>
		/// Name of version
		/// </summary>
		public static string Name
		{
			get
			{
				return mName;
			}
		}

		/// <summary>
		/// File version
		/// </summary>
		public static System.Version FileVersion
		{
			get
			{
				return mVersion;
			}
		}
	}
}